{{useCss "/app-pages/css/user/main.scss"}}
<div class="personal">
    <div class="main">
        <div class="top">
            <div  class="blur_logo">
                <img src="{{loginer.info.header_url||$Image.default_head}}?imageMogr2/blur/3x3/thumbnail/320x">
            </div>
            <div class="logo">
                <div>
                	{{#if loginer}}
                    <href to="/user/info.html?type=1">
                        <img bind-src="{{loginer.info.header_url||$Image.default_head}}?imageView/1/w/110/h/110" />
                    </href>
                    {{#else}}
                    <href to="/sign_in.html">
						<img bind-src="{{$Image.default_head}}" />
                    </href>
                    {{/if}}
                </div>
            </div>
            <div class="name">
                {{#if loginer}} 
                <span>{{loginer.info.name}}</span> 
                {{#else}}
                <href style="color: #FF9D9D;font-weight: 400;text-shadow: #000 0px 0px 6px, #300 0px 0px 8px, #000 0px 6px 12px;" to="/sign_in.html">点此登陆</href>
                {{/if}}
            </div>
        </div>

        <!-- menu -->
        <div class="nav {{loginer&&'focus'}}">
            <href-with-check-loginer class="item border" to="/user/order.html">
                <i class="icon-doc-text"></i>
                我的订单
                <div class="symbol icon-right-open-big"></div>
            </href-with-check-loginer>
            <href-with-check-loginer class="item" to="/user/info.html?type=3">
                <i class="icon-location"></i>
                我的收货地址
                <div class="symbol icon-right-open-big"></div>
            </href-with-check-loginer>
        </div>

        <div class="nav {{loginer&&'focus'}}">
            <href-with-check-loginer class="item border" to="/user/info.html?type=1">
                <i class="icon-user"></i>
                个人信息
                <div class="symbol icon-right-open-big"></div>
            </href-with-check-loginer>
            <href-with-check-loginer class="item" to="/user/info.html?type=2">
                <i class="icon-key"></i>
                修改密码
                <div class="symbol icon-right-open-big"></div>
            </href-with-check-loginer>
            {{#if $Cache.user.main.WX.openid}}
            <href-with-check-loginer class="item" event-click="{{'$Event.user.main.bind_weixin_by_openid'}}">
                <i class="icon-bubbles"></i>
                {{#if loginer.info.weixin_unionid}}
                微信已绑定<small>（点击重新绑定当前微信号）</small>
                {{#else}}
                微信未绑定<small>（点击绑定您的微信号）</small>
                {{/if}}
                <div class="symbol icon-right-open-big"></div>
            </href-with-check-loginer>
            {{/if}}
        </div>

        <div class="nav {{loginer&&'focus'}}">
            <a class="item border">
                <div event-click="{{'$Event.user.main.show_location_store_share'}}">
                    <i class="icon-paper-plane-empty"></i>
                    本站推广
                    <div class="symbol icon-{{$Cache.user.main.show_location_store_share&&'up-open-big'||'down-open-big'}}"></div>
                </div>
                <div class="shareinfo {{$Cache.user.main.show_location_store_share&&'focus'}}">
                    您的本站推广二维码
                    <div>
                        <img class="qrcode" bind-src="{{$Cache.bus.qrcode_data}}" />
                        <jqrcode
                            text="{{bus_info.info.domain_url}}?rcid={{loginer._id}}"
                            ec-level="H"
                            size="200"
                            radius="20"
                            m-image="{{bus_info.info.logo_url}}?imageView/2/h/150/w/150"
                            m-size="30"
                            bind-input="{{'$Cache.bus.qrcode_data'}}"
                            style="display:none"
                        ></jqrcode>
                    </div>
                    您的本站推广链接
                    <div>
                        {{bus_info.info.domain_url}}?rcid={{loginer._id}}
                    </div>
                </div>
            </a>
            <href-with-check-loginer class="item border" to="/user/buff.html">
                <i class="icon-export"></i>
                推荐返利
                <div class="symbol icon-right-open-big"></div>
            </href-with-check-loginer>
            <href-with-check-loginer class="item border" to="/user/buff.html?type=2">
                <i class="icon-link"></i>
                导购链接
                <div class="symbol icon-right-open-big"></div>
            </href-with-check-loginer>
            <href-with-check-loginer class="item" to="/user/buff.html?type=3">
                <i class="icon-retweet"></i>
                分销管理
                <div class="symbol icon-right-open-big"></div>
            </href-with-check-loginer>
            <href-with-check-loginer class="item" to="/user/invite.html">
                <i class="icon-users"></i>
                推荐注册
                <div class="symbol icon-right-open-big"></div>
            </href-with-check-loginer>
        </div>

        <div class="nav {{loginer&&'focus'}}">
            <href-with-check-loginer class="item border" to="/user/collection.html">
                <i class="icon-bank"></i>
                店铺收藏
                <div class="symbol">
                    <label>{{loginer.collectBus.length||'0'}}</label>
                   <i class="icon-right-open-big"></i>  
                </div>
            </href-with-check-loginer>
            <href-with-check-loginer class="item border" to="/user/collection.html?type=2">
                <i class="icon-th-large"></i>
                商品收藏
                <div class="symbol">
                    <label>{{loginer.collect.length||'0'}}</label>
                   <i class="icon-right-open-big"></i>  
                </div>
            </href-with-check-loginer>
            <href-with-check-loginer class="item" to="/user/comments.html">
                <i class="icon-star-half-alt"></i>
                评价管理
                <div class="symbol icon-right-open-big"></div>
            </href-with-check-loginer>
        </div>

        <div class="nav {{loginer&&'focus'}}">
            <a class="item" event-click="{{'$Event.user.main.user_login_out'}}">
                <i class=" icon-logout"></i>
                退出登陆
            </a>
        </div>

    </div>
</div>
<xmp type="tag" name="href-with-check-loginer">
    <href event-beforejump-check-loginer-before-jump="{{'$Event.user.main.before_jump'}}" ${__all_attrs__}>
        ${innerHTML}
    </href>
</xmp>